FtMscLibEx GetInCounterValue Method FtMscLibExNet for .NET framework 4
Support for fischertechnik TX-controller

[This is preliminary documentation and is subject to change.]

API 3.18 GetInCounterValue
Function reads the current value of a counter input (counter) from the transfer area and
makes it available to an application.

Namespace: FischerTechnik.FtMscLib.API
Assembly: FtMscLibVBNet (in FtMscLibVBNet.dll) Version: 1.0.0.1 (1.0.0.10)
Syntax

public uint GetInCounterValue(
	FtDeviceID devId,
	FtFastCounterInput cntId,
	ref short count,
	ref short state
)

Parameters

devId
Type: FischerTechnik.FtMscLib.Enumurations FtDeviceID
controller ID (master or extension controller)
cntId
Type: FischerTechnik.FtMscLib.Enumurations FtFastCounterInput
index, counter (0 to 3)
count
Type: System Int16 
current counter status
state
Type: System Int16 
set mode of counter
TRUE: "INVERTED" mode
FALSE: "NORMAL" mode

Return Value

Type: UInt32
FTLIB_ERR_SUCCESS (no error) or error code
Remarks

See Also

Reference